home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / motif / README < prev    next >
Text File  |  1996-11-11  |  4KB  |  100 lines

  1.  
  2.             ~4Dgifts/toolbox/src/exampleCode/opengl/motif README
  3.  
  4.  
  5.                 THIS CODE RUNS/COMPILES ON 5.1 Irix OR LATER
  6.                 THIS CODE WILL NOT RUN ON LESS THAN 5.1 Irix
  7.  
  8.     (all the o*.c files were updated to reflect the shift of the 
  9.      drawing area widget, GLwMDrawA.h, moved into /usr/include/GL)
  10.  
  11.  
  12. This directory contains sample openGL source code based on the MOTIF toolkit,
  13. or at least, including the Motif library (see textfun).
  14.  
  15. Following is the directory inventory:
  16.  
  17.  
  18.    drawWidget:   example of combining the opengl drawing widget with a motif
  19.          main window.  The example also shows how to set the windows
  20.          to perform dynamic switching between a double buffered and 
  21.          a single buffered opengl window.
  22.  
  23.    oblur :       this program shows how to use accumulation buffer
  24.                  to do motion blur
  25.                  left   mouse for animation
  26.                  middle mouse to turn motion blur OFF (default)
  27.                  right  mouse to turn motion blur ON
  28.    
  29.    obuffer :     this program shows how to toggle between single and double 
  30.                  buffer mode on the fly. use left and middle mouse to switch
  31.                  buffers and right mouse for animation.
  32.    
  33.    oclip :       this program shows the usage of arbitrary clipping plane.
  34.                  use left mouse to animate the object and right mouse to 
  35.                  move the clipping plane.
  36.    
  37.    oedgeflag :   this program shows how to use edgeflag to control
  38.                  visibility of edges 
  39.                  left   mouse for animation                    
  40.                  middle mouse to turn Edge Flag OFF
  41.                  right  mouse to turn Edge Flag ON
  42.    
  43.    ohidden :     this program shows how to draw outlined polygon using 
  44.                  stencil planes. 
  45.                  left   mouse for animation
  46.                  middle mouse to turn OFF stenciling
  47.                  right  mouse to turn ON  stenciling
  48.    
  49.    olight :      a program which shows how to do hardware lighting (including
  50.                  two sided light). use left mouse to animate the object,
  51.                  middle mouse to turn on two sided light and right mouse
  52.                  to turn on single sided light.
  53.    
  54.    ostencil :    a program which shows how to use stencil planes.
  55.                  left   mouse for animation
  56.                  middle mouse to turn stenciling OFF
  57.                  right  mouse to turn stenciling ON
  58.    
  59.    otessellate : this program shows how to tessellate concave polygons
  60.                  and polygons with holes using glu routines
  61.                  left   mouse for animation
  62.                  middle mouse to turn Tessellation OFF
  63.                  right  mouse to turn Tessellation ON
  64.    
  65.    otext :       a program which shows how to create and draw bitmapped text.
  66.                  it achieves charstr() functionality of irisGL.
  67.  
  68.  
  69.    textfun:      takes bitmap fonts from the X server into an OpenGL client 
  70.                  and convert them into OpenGL display lists with 
  71.                  transformative geometry.  Text can then be displayed from 
  72.                  any perspective in 3D.
  73.  
  74.                  The program renders OpenGL into a standard Motif drawing 
  75.                  area and does not use any special OpenGL widget.  Pull-down 
  76.                  menus with toggles and radio buttons are used.  The 
  77.                  animation is controled by X Toolkit work procs;  iconfiying
  78.                  textfun will stop the work proc and resume it when the 
  79.                  program is uniconified.
  80.   
  81.                  Various fonts can be switched between.  A number of the 
  82.                  fonts are X-scalable fonts demonstrating how the blocky 
  83.                  nature of the text can be minimized with higher resolution 
  84.                  fonts.
  85.   
  86.                  textfun demonstrates:
  87.                  o  Code to suck down X bitmap fonts so they can then be 
  88.             converted into geometry (ie, not glBitmap) display list 
  89.             fonts.
  90.                  o  A pulldown menu with a radio button box.
  91.                  o  the poor-man's OpenGL font manager!
  92.  
  93.  
  94.    textfun5.1:   uses the Makefile's textfun5.1 compile rule employing the
  95.                  IRIX_5_1_MOTIF_BUG_WORKAROUND flag for a Motif bug in IRIX 5.1
  96.                 
  97.                  
  98.    xmblur:       do motion blur in OpenGL with the libGLw widget.
  99.  
  100.